package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_bone_re", autoSave = true, desc = "珍兽魂骨回收/重置", uploadCk = true)
public class LogVehicleBoneRecycle extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "魂骨唯一id", saveJson = true)
    private List<Integer> boneUid;
    @FieldTypeAnnotation(desc = "魂骨配置id", saveJson = true)
    private List<Integer> boneConfigId;
    @FieldTypeAnnotation(desc = "类型 1重置 2回收")
    private int reType;
    @FieldTypeAnnotation(desc = "返还道具")
    private String reward;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogVehicleBoneRecycle(long userId, List<Integer> boneUid, List<Integer> boneConfigId, int reType, String reward) {
        this.userId = userId;
        this.boneUid = boneUid;
        this.boneConfigId = boneConfigId;
        this.reType = reType;
        this.reward = reward;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
